<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/1/7
 * Time: 16:41
 */

namespace app\index\controller;

use  think\Db;

class Home
{
    public function index()
    {
        $list=Db::table('banner')->order("id")->select();
//        print_r($list);
        $list2=Db::table('trial')->order("id")->page(1,13)->select();
//        print_r($list2);
        return view('home')->assign("list",$list)->assign("list2",$list2);
    }
}